home *** CD-ROM | disk | FTP | other *** search
/ Champak 29 / Volume 29 - JOGO DISK .iso / Games / jumping_jelly_beans.swf / scripts / DefineSprite_638 / frame_1 / DoAction.as
Text File  |  2006-11-29  |  458b  |  23 lines

  1. MovieClip.prototype.insjump = function(no)
  2. {
  3.    var t = this;
  4.    t.yland = t._y;
  5.    t.gotoAndstop("jump");
  6.    t.ys = r.jumppower[no];
  7.    t._y += t.ys;
  8.    t.onEnterFrame = function()
  9.    {
  10.       t._y += t.ys;
  11.       t.ys += r.grav[no];
  12.       if(t._y >= t.yland)
  13.       {
  14.          t._y = t.yland;
  15.          t.gotoAndstop("run");
  16.          delete t.onEnterFrame;
  17.       }
  18.    };
  19.    t.stop();
  20. };
  21. p1.tipenet = p2.tipenet = p3.tipenet = 1;
  22. now = 1;
  23.